package com.lanou3g.ptp.teachlink.mapper;

import com.lanou3g.ptp.entity.Teachlink;
import com.lanou3g.ptp.vo.TeachLinkParams;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface TeachlinkMapper {
    List<Teachlink> findAll();

    List<Teachlink> findByKeyword(String keyword);

    Teachlink findById(Long id);

    int insert(Teachlink teachlink);

    int updateById(Teachlink teachlink);

    int deleteById(Long id);

    int deleteByIds(Long[] ids);

    List<Teachlink> findByCondition(TeachLinkParams condition);

    List<Teachlink> findByMajorIdAndGrade(@Param("majorId") Long majorId,@Param("grade") String grade);
}
